package com.cc.util;

public class PBOCException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static String errMsg;
	private static Throwable cause;

	public PBOCException() {
		super();
	}

	public PBOCException(String errorMsg) {
		super(errorMsg);
		errMsg = errorMsg;
	}

	public PBOCException(Throwable e) {
		super(e);
	}

	public PBOCException(String errorMsg, Throwable e) {
		super(errorMsg, e);
		errMsg = errorMsg;
		cause = e;
	}

	public String getErrMsg() {
		return errMsg;
	}
	public Throwable getException(){
		return cause;
	}

	@Override
	public String toString() {
		return super.toString();
	}
}
